package com.yegs.jltqc.dao;

import com.yegs.jltqc.VO.RpAge;
import com.yegs.jltqc.VO.RpStock;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface RpAgeRepository extends JpaRepository<RpAge,Long> {

    RpAge findFirstByIdIsAfter(Long id);

    RpAge findFirstByIdBeforeOrderByIdDesc(Long id);

    RpAge findFirstByOrderById();

    RpAge findFirstByOrderByIdDesc();

    Page<RpAge> findAll(Specification<RpAge> specs, Pageable pageable);

}
